//
// Created by 11275 on 2021/6/16.
//
#include <malloc.h>
#include <GlobalVar.h>
#include <Dict.h>
#include "Type.h"
#include "Module.h"
Type ModuleType = {
        .type=&TypeType,
        .dict=0,
        .name = "Type module"
};


Module* module_allocate(Object* obj){
    Module* module = (Module*)malloc(sizeof(Module));
    if(obj==NULL) {
        module_init(module,dict_allocate_const());
    }
    else module_init(module,obj);
    return module;
}

Module* module_import(Object* obj){

}
void module_init(Module* self, Dict* dict){
    self->type=&ModuleType;
    self->dict=dict;
}